package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppRealNameDao;
import com.vf.admin.client.service.AppRealNameService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppRealName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 实名认证
 * @author anxiang
 * @version 1.0.0
 * @ClassName AppRealNameServiceImpl.java
 * @Description TODO
 * @createTime 2021年07月21日 11:02:00
 */
@Service
public class AppRealNameServiceImpl implements AppRealNameService{

    @Autowired
    AppRealNameDao appRealNameDao;

    @Override
    public List<AppRealName> list(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return appRealNameDao.list(paraMap, splitPage);
    }

    @Override
    public AppRealName get(Integer id) {
        return appRealNameDao.get(id);
    }

    @Override
    public void save(AppRealName haoYou) {
        appRealNameDao.save(haoYou);
    }

    @Override
    public void del(Integer id) {
        appRealNameDao.del(id);
    }

    @Override
    public AppRealName getReal(Integer userid) {
        return appRealNameDao.getReal(userid);
    }

    @Override
    public List<AppRealName> selectList() {
        return appRealNameDao.selectList();
    }

    @Override
    public Integer userCount() {
        List<AppRealName> appRealNames = appRealNameDao.userCount();
        return appRealNames.size();
    }
}
